#include <iostream>
using namespace std;
#include "names.h"
using namespace pers;
using namespace debts;

void other(void) {
  person dg = {"李", "四"};
  showperson(dg);
  cout << endl;
  debt arr[3];
  int i;
  for (i = 0; i < 3; i++) {
    getdebt(arr[i]);
  }
  for (i = 0; i < 3; i++) {
    showdebt(arr[i]);
  }
  cout << "Total debt:" << sumdebt(arr, 3) << endl;
}
void another(void) {
  person cl = {"王", "五"};
  showperson(cl);
  cout << endl;
}
int main() {
  debt golf = {{"张", "三"}, 120.0};
  showdebt(golf);
  other();
  another();
  return 0;
}
